package org.agpsoft.datareceiverinfrastructure.recorder;

import org.agpsoft.datareceiverinfrastructure.common.IDecodedData;
import org.agpsoft.datareceiverinfrastructure.common.IElementInitiator;
import org.agpsoft.datareceiverinfrastructure.exception.DataReceiverRecordException;
import org.agpsoft.datareceiverinfrastructure.transmitter.IDataTransmitter;

/**
 * Interface for recording decoded data, any implentation of this class will be attached to {@link IDataTransmitter}
 * @author Ali Gokalp Peker
 */
public interface IDecodedDataRecorder extends IElementInitiator{
	
	/**
	 * Records data
	 * @param decodedData Decoded data to record
	 * @throws DataReceiverRecordException Thrown on any error
	 */
	public void recordData( IDecodedData decodedData ) throws DataReceiverRecordException;
}
